package cn.thens.kdroid.core.io

import java.io.File


object Files {
    fun writeBytes(file: File, bytes: ByteArray) {
        file.outputStream().use { it.write(bytes) }
    }

    fun readBytes(file: File): ByteArray {
        return file.inputStream().use { it.readBytes() }
    }
}
